<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>  
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri='/WEB-INF/cewolf.tld' prefix='cewolf'%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<fmt:bundle basename="br.com.universidade.castelo.branco.resources.ApplicationResources" prefix="">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
<body>

<jsp:include page="/WEB-INF/views/pesquisadesatisfacao/menu.jsp" flush="true"></jsp:include>

<img src="resources/imagens/pixel_transparente.gif" height="5%" width="10%">
<div align="center">


			
			<fieldset id="fieldsetDownload">

				<legend id="alinhamentoForm">
					<h3>
						<fmt:message key="relatorio.modulo.gerencial.download"></fmt:message>
					</h3>
				</legend>

				<table>
					<tr>
						<th width="60px"><a href="baixarGraficoComparacao"><div class=imgPdf></div>PDF</a></th>
					</tr>
				</table>
				
			</fieldset>
			

			<br />
			<br />
			<br />


			<fieldset id="fieldsetConsulta">

				<legend id="alinhamentoFormConsulta">
					<h3>
						<fmt:message key="pesquisas.modulo.titulo"></fmt:message>
					</h3>
				</legend>

				<br />
				<c:forEach items="${listaPesquisas}" var="pesquisa">

					<form action="emiteRelatorioComparacao" method="post">


						<fieldset id="fieldsetConsulta">

							<table class=linhasAlternadas align="center">

								<tr>
									<th><fmt:message
											key="consulta.modulo.questionario.campo.titulo.questionario"></fmt:message></th>
									<th><fmt:message key="consulta.modulo.pesquisa.campo.tema"></fmt:message></th>
									<th><fmt:message
											key="consulta.modulo.pesquisa.campo.objetivo"></fmt:message></th>
									<th><fmt:message
											key="consulta.modulo.pesquisa.campo.comentario"></fmt:message></th>
									<th><fmt:message
											key="consulta.modulo.pesquisa.campo.data.inicio"></fmt:message></th>
									<th><fmt:message
											key="consulta.modulo.pesquisa.campo.data.termino"></fmt:message></th>
								</tr>

								<c:forEach items="${pesquisa.pesquisas}" var="pesquisa">
									<tr>

										<td>${pesquisa.auxTitulo}<input type="hidden"
											name="auxTitulo" value="${pesquisa.auxTitulo}"><input
											type="hidden" name="id_pesquisa"
											value="${pesquisa.id_pesquisa}"></td>
										<td>${pesquisa.tema}<input type="hidden" name="tema"
											value="${pesquisa.tema}"></td>
										<td>${pesquisa.objetivo}<input type="hidden"
											name="objetivo" value="${pesquisa.objetivo}"></td>
										<td>${pesquisa.comentario}<input type="hidden"
											name="comentario" value="${pesquisa.comentario}"></td>
										<td><fmt:formatDate value="${pesquisa.dataInicio}" /><input
											type="hidden" name="dataInicio"
											value="${pesquisa.dataInicio}"></td>
										<td><fmt:formatDate value="${pesquisa.dataTermino}" /><input
											type="hidden" name="dataTermino"
											value="${pesquisa.dataTermino}"></td>
									</tr>
								</c:forEach>

							</table>
						</fieldset>
						<br /> <br /> <br />

					</form>
				</c:forEach>
			</fieldset>
			
			<br />
			<br />
			<br />

			<fieldset id="fieldsetConsulta">

				<legend id="alinhamentoForm">
					<h3>
						<fmt:message key="relatorio.questionario"></fmt:message>
					</h3>
				</legend>

				<c:forEach items="${dadosGrafico}" var="respostaPesquisa">

					<cewolf:chart id="line"
						title="Pesquisa: ${respostaPesquisa.tema}   -   Questionario: ${respostaPesquisa.titulo}"
						type="horizontalbar3d" xaxislabel="${respostaPesquisa.nomeEixoY}"
					yaxislabel="${respostaPesquisa.nomeEixoX}">

						<cewolf:gradientpaint>
							<cewolf:point x="0" y="0" color="#FBFBFB" />
							<cewolf:point x="350" y="0" color="#F3F3F3" />
						</cewolf:gradientpaint>

						<cewolf:data>
							<cewolf:producer id="${respostaPesquisa.nomeGrafico}" />
						</cewolf:data>

					</cewolf:chart>

					<br />
					<cewolf:img chartid="line" renderer="/cewolf" width="1200"
					height="480" />
					<br />
					<br />
					<br />

				</c:forEach>

			</fieldset>
		</div>
</body>
</fmt:bundle>
</html>